package com.lfd.multienvironment;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.lfd.multienvironment.config.CusorText;
import lombok.extern.slf4j.Slf4j;
import org.springframework.aop.framework.AopProxyUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@Slf4j
@SpringBootApplication
public class MultiEnvironmentApplication implements ApplicationRunner {
    @Value("${text}")
    private String text;
    @Autowired
    private CusorText cusorText;
    @Autowired
    private ObjectMapper objectMapper;

    public static void main(String[] args) {
        SpringApplication.run(MultiEnvironmentApplication.class, args);
    }

    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("=========text={}", text);
        log.info("=========cusorText={}", cusorText);
    }
}
